package com.example.dao;

import com.example.entity.Literature;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface LiteratureDao extends JpaRepository<Literature,Long> , JpaSpecificationExecutor<Literature> {
    Page<Literature> findBySource(String title, Pageable pageable);
}
